const sequel= require('../../config/sequelize');
const Sequelize = require('sequelize');

const DealerDeal = sequel.define('dealerDeal', {
    dealerId: {
        type: Sequelize.BIGINT,
        field: 'dealerId'
    },
    sellerId: {
        type: Sequelize.BIGINT,
        field: 'sellerId'
    },
    antisepticTreatment: {
        type: Sequelize.STRING(100),
        field: 'antisepticTreatment'
    },
    startingTime: {
        type: Sequelize.DATE,
        field: 'address'
    },
    endingTime: {
        type: Sequelize.DATE,
        field: 'endingTime'
    },
    salePrice: { //暂时string，后期数字
        type: Sequelize.STRING(20),
        field: 'salePrice'
    },
    salePriceUnit: {
        type: Sequelize.STRING(20),
        field: 'salePriceUnit'
    },
    amount: {
        type: Sequelize.STRING(20),
        field: 'amount'
    },
    address: {
        type: Sequelize.STRING(100),
        field: 'address'
    }
});

module.exports = DealerDeal;